package com.vehicle.service;

import com.vehicle.bean.DataGridView;
import com.vehicle.pojo.Role;

import java.util.List;

public interface RoleService {
    public Role findRoleByRid(Integer rid);

    //分页查询角色列表
    public DataGridView findRoleByPage(Role role);


    //根据uid找到对应的角色显示为勾选
    public DataGridView findRoleByUid(Integer uid);

    //分配权限
    public void  assignPermission(Integer rid,Integer[] pids);

    //增加角色
    public void addRole(Role role);

}
